<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>凤凰基金</title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>skin/css/pf/link.css"/>
<script type="text/javascript" src="<%=basePath%>skin/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>skin/js/pf/script.js"></script>
<script type="text/javascript" src="<%=basePath%>skin/js/common.js"></script>
</head>

<body>
<c:import url="/layouts/top.jsp" />
<!--二级页面大图-->
<div id="publics">
	<div class="bg" style="background:url(<%=basePath%>skin/images/pf/novice_bg.jpg) center no-repeat;">
		<p class="bgs" style="background:url(<%=basePath%>skin/images/pf/novice_bg1.jpg) center no-repeat;"></p>
	</div>
</div>
<!--二级页内容区-->
<div id="second">
	<div class="second">
			<div class="nav">
				<c:forEach items="${newsTypes }" var="newsType">
					<c:choose>
					<c:when test="${not empty newsType.url }">
						<a href="${newsType.url }" <c:if test="${not empty news.newsType && news.newsType.id == newsType.id }">class="click"</c:if>>
					</c:when>
					<c:otherwise>
						<a href="<%=basePath%>shop/news/list.shtml?newsTypeId=${newsType.id}" <c:if test="${not empty news.newsType && news.newsType.id == newsType.id }">class="click"</c:if>>
					</c:otherwise>
					</c:choose>
						${newsType.type }
					</a>
				</c:forEach>
			</div>
		<div class="right">
			<div class="content">
				<h2 class="title">${news.title}</h2>
				<p class="time">Time:<fmt:formatDate value="${news.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>&nbsp;&nbsp;&nbsp;&nbsp;From:${news.fromwho}</p>
				<div class="txt">
					${news.content}
				</div>
				<div class="correlation">
					<a href="<%=basePath%>shop/news/list.shtml?newsTypeId=${news.newsType.id}" class="right"><span class="ico"></span>返回列表</a>
					<div id="clear"></div><!--清除浮动-->
				</div>
			</div>
		</div>
		<div id="clear"></div><!--清除浮动-->
	</div>
</div>
<c:import url="/layouts/foot.jsp" />
</body>
</html>
